/**
 * The Wagon class represents the wagon in the Oregon Trail game. It knows
 * its current location and pace, and the rations of the party inside. It
 * includes getters and setters for each of these variables.
 * 
 */
public class Wagon{
    
    /**
     * Location of the wagon/party represented as an int.
     */
    private int location;
    
    /**
     * The number of miles traveled in one day. Must not be negative.
     */
    private int pace;
    
    /**
     * Number of pounds of food consumed per day per person. Must not be 
     * negative.
     */
    private int rations;
    
    
    /**
     * Constructor for the Wagon class.
     * 
     * @param startPace - The initial pace of the wagon. Represents the number
     *      of miles to travel in one day.
     * @param startLocation - The starting location of the wagon.
     * @param startRations - The initial rations of the party. Represents the
     *      number of pounds of food to be consumed per person per day.
     */
    public Wagon(int startPace, int startLocation, int startRations){
        pace=startPace;
        location=startLocation;
        rations=startRations;
    }//ends constructor Wagon
    
    /**
     * Returns the location of the wagon as an int.
     * 
     * @return location - The location of the wagon.
     */
    public int getLocation(){
        return location;
    }//ends getLocation
    
    /**
     * Returns the pace of the wagon as an int.
     * 
     * @return pace - the number of miles traveled in one day.
     */
    public int getPace(){
        return pace;
    }//ends getPace
    
    /**
     * Returns the rations of the party in the wagon as an int.
     * 
     * @return rations - the number of pounds of food eaten per person per day.
     */
    public int getRations(){
        return rations;
    }//ends getRations
    
    /**
     * Sets the pace of the wagon.
     * 
     * @param newPace - the number of miles to travel in one day.
     */
    public void setPace(int newPace){
        pace = newPace;
    }//ends setPace
    
    /**
     * Sets the rations of the party in the wagon.
     * 
     * @param newRations - the number of pounds each person is to eat per day.
     */
    public void setRations(int newRations){
        rations = newRations;
    }//ends setRations
    
    /**
     * Sets the location of the wagon.
     * 
     * @param newLoc - the location of the wagon as an int.
     */
    public void setLocation(int newLoc){
        location = newLoc;
    }//ends setLocation
    
}//ends class Wagon